﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Configurations;
using System.Xml.Serialization;

namespace Pixysoft.Framework.Reports.Core
{
    class ReportLayoutRow : IReportLayoutRow
    {
        int rowIndex;
        int height;
        List<ReportLayoutColumn> list = new List<ReportLayoutColumn>();

        public ReportLayoutRow()
        {
        }


        public ReportLayoutRow(int height)
        {
            this.height = height;
        }

        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        public List<ReportLayoutColumn> SerializeColumns
        {
            get
            {
                return list;
            }
            set
            {
                list = value;
            }
        }

        public int RowIndex
        {
            get { return rowIndex; }
            set { rowIndex = value; }
        }


        public void SetHeight(int height)
        {
            this.height = height;
        }

        public IReportLayoutColumnCollection GetColumns()
        {
            return new ProtoGridColumnCollection(list);
        }

    }
}
